# Created by: Olivier Duchateau
# $FreeBSD$

PORTNAME=	libwapcaplet
PORTVERSION=	0.2.1
CATEGORIES=	textproc
MASTER_SITES=	http://download.netsurf-browser.org/libs/releases/
DISTNAME=	${PORTNAME}-${PORTVERSION}-src

MAINTAINER=	olivierd@FreeBSD.org
COMMENT=	String internment library

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

MAKEFILETOP=	${LOCALBASE}/share/netsurf-buildsystem/makefiles/Makefile.top

BUILD_DEPENDS=	${MAKEFILETOP}:${PORTSDIR}/devel/netsurf-buildsystem

USES=	gmake
USE_LDCONFIG=	yes

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
MAKE_ENV+=	COMPONENT_TYPE=lib-shared

WRKSRC=	${WRKDIR}/${PORTNAME}-${PORTVERSION}

post-patch:
	${REINPLACE_CMD} -i '' -e 's|LIBDIR|lib|' \
		${WRKSRC}/libwapcaplet.pc.in

.include <bsd.port.mk>
